<template>
    <h1>{{ state.name }}</h1>
    <p>{{ state.title }}</p>
</template>

<script>
import {ref} from "vue"
import {useStore} from "vuex"



export default {
    name: 'CounterPlus',
    props: {

    },
    setup() {
        const store = useStore();
        const state = ref(store.state)
        return{
            state
        }
    }
}
</script>


<style>

</style>
